//
//  AttackTitleCollectionReusableView2.m
//  GiftNote
//
//  Created by wsh on 15/8/13.
//  Copyright (c) 2015年 GN. All rights reserved.
//

#import "AttackTitleCollectionReusableView2.h"
#import "Screen.h"

@implementation AttackTitleCollectionReusableView2
- (instancetype)initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame:frame]) {
        _titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(10, 0, SCREEN_WIDTH , 30)];
        
        _titleLabel.font = [UIFont systemFontOfSize:18];
        [self addSubview:_titleLabel];
        
        
        _button = [UIButton buttonWithType:UIButtonTypeCustom];
        [_button setTitleColor:[UIColor blackColor]forState:UIControlStateNormal];
        _button.frame = CGRectMake(SCREEN_WIDTH - 120, 0, 120, 30);
        _button.titleLabel.font = [UIFont systemFontOfSize:14];
        [_button setTitle:@"查看全部>>" forState:UIControlStateNormal];
        [self addSubview:_button];
    }
    return self;
}


- (void)setTitile:(NSString *)titile{
    _titile = titile;
    
    _titleLabel.text = titile;
}



@end
